﻿using System.Collections.Generic;

namespace Eleven.BreakAway.Model
{
    public class Person
    {
        public string SocialSecurityNumber { get; set; }

        public string LastName { get; set; }

        public string MiddleName { get; set; }

        public string FirstName { get; set; }

        //public byte[] RowVersion { get; set; }

        public Address Address { get; set; }

        public PersonInfo Info { get; set; }

        public List<Lodging> PrimaryContractFor { get; set; }

        public List<Lodging> SeconaryContractFor { get; set; }

        public PersonPhoto Photo { get; set; }

        public Person()
        {
            Address = new Address();
            Info = new PersonInfo
            {
                Weight = new Measurement(),
                Height = new Measurement()
            };
        }
    }

    public class Measurement
    {
        public decimal Reading { get; set; }

        public string Units { get; set; }
    }

    public class PersonInfo
    {
        public Measurement Weight { get; set; }

        public Measurement Height { get; set; }

        public string DietryRestrictions { get; set; }
    }
}
